#!/usr/bin/env php
<?php
/**
 * Yii console bootstrap file.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

error_reporting(E_ALL^E_NOTICE);
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../helper/function.php');

require(__DIR__ . '/../../lib/vendor/autoload.php');
require(__DIR__ . '/../../lib/framework/Yii.php');

$config = require(__DIR__ . '/../config/console.php');
$application = new yii\console\Application($config);
$exitCode = $application->run();
exit($exitCode);
